package org.jeecg.modules.online.cgform.enhance.impl;

import java.util.Map;

import lombok.extern.slf4j.Slf4j;
import org.jeecg.modules.online.cgform.enhance.CgformEnhanceJavaInter;
import org.jeecg.modules.online.cgform.util.CgformUtil;
import org.jeecg.modules.online.config.exception.BusinessException;

import com.alibaba.fastjson.JSONObject;
import org.springframework.stereotype.Component;

@Slf4j
@Component("cgformEnhanceJavaDemo")
public class CgformEnhanceJavaDemo implements CgformEnhanceJavaInter{

	@Override
	public int execute(String tableName, JSONObject json) throws BusinessException {
		log.info("----------我是自定义java增强测试demo类-----------");
		log.info("--------当前tableName=>"+tableName);
		log.info("--------当前JSON数据=>"+json.toJSONString());
		//业务代码
		return CgformUtil.OL_IMPORT_INSERT;
	}

	@Override
	public int execute(String tableName, Map<String, Object> map) throws BusinessException {
		// TODO Auto-generated method stub
		return CgformUtil.OL_IMPORT_INSERT;
	}

}
